<?php
//All the functions go here


//function for autoloading the classes
function __autoload($class_name){
	$class_name = strtolower($class_name);
	$path = "{LIB}.{$class_name}.php";
	echo "I was here for {$class_name}";
	if(file_exists($path)){
		require_once($path);
	}
	elseif(file_exists($class_name.php)){
		require_once "{$class_name}.php";
	}	
	else {
		die("Could not find class file {$path}");
	}
	
}
function redirect_to($url){
	header("location:".$url);
}
function output_message($message){
	echo $message;
}
function include_layout_template($template = ""){
	echo SYSTEM_ROOT."public".DS."templates".DS.$template;
}
?>